export default[
    {
      path: '/home',
      name: 'home',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "home" */ '@/views/homePage'),
      meta:{
        allow:true
      }
    },
    //优惠券
    {
      path: '/selectCoupons',
      name: 'selectCoupons',
      component: () => import(/*webpackChunkName: 'homePage'*/'@/views/homePage/selectCoupons'),
      meta:{
        allow:false
      }
    },
    // 确认订单
    {
      path: '/confirmOrder',
      name: 'confirmOrder',
      component: () => import(/* webpackChunkName: "confirmOrder" */ '@/views/homePage/confirmOrder'),
      meta:{
        allow:false
      }
    },
    // 点餐
    {
      path: '/order',
      name: 'order',
      component: () => import(/* webpackChunkName: "order" */ '@/views/homePage/order'),
      meta:{
        allow:false
      }
    },
    // 预约
    {
      path: '/appointment',
      name: 'appointment',
      component: () => import(/* webpackChunkName: "appointment" */ '@/views/homePage/appointment'),
      meta:{
        allow:false
      }
    },
    // 关于我们
    {
      path: '/aboutmine',
      name: 'aboutmine',
      component: () => import(/*webpackChunkName: 'aboutmine'*/'@/views/aboutmine'),
      meta:{
        allow:true
      }
    },
    // 城市
    {
      path: '/city',
      name: 'city',
      // 第1作用：让js分开 分割 拆分
      // 第2作用：懒加载 需要我时，我才加载
      component: () => import(/*webpackChunkName: 'city'*/'../../views/homePage/city'),
      meta:{
        allow:true
      }
    },
    { 
      path: '*',
      component: () => import(/*webpackChunkName: 'Notfound'*/'@/components/Notfound'),
 }
]